import React from 'react'
// 定义路由表
import Home from './pages/Home'
import About from './pages/About'
import News from './pages/News'
import Message from './pages/Message'
import Detail from './pages/Detail'



export default [
  {
    path: '/home',
    component: Home,
    children: [
      {
        path: '/home/news',
        component: News,
      },
      {
        path: '/home/message',
        component: Message,
        children: [
          {
            path: '/home/message/detail/:id',
            component: Detail,
          },
        ],
      },
    ],
  },
  {
    path: '/about',
    component: About,
  },
]
